//first declare globals
var SEMF = {};

SEMF["page"] = {};
SEMF["sys"] = {};

// Handling the common page onLoad function 
SEMF.onLoad = function()
{

} // end of the function page onLoad

// Handling the onClick of Button25 (just for server request)
SEMF.Button25_onClick = function()
{
var varInOuts = ["pg_player_name", SEMF.page._player_name,
"pg_player_age", SEMF.page._player_age];
var tableInOuts = ["dt_new_player", SEMF.listIdsFor("new_player"),
"dt_player", SEMF.listIdsFor("player")];
var inherited = [];
if(arguments.length == 2 && arguments[0] == "params")
{
 inherited = arguments[1];
}
var functName = ["funct_name", "Button25_onClick"];
var paramArray = varInOuts.concat(tableInOuts, inherited, functName);
SEMF.request(SEMF.dataModelFileName,
{
  success: SEMF.handleSuccess,
  failure: SEMF.handleFailure,
  argument: {
	  ps: SEMF.onFinishDataUpdate
  },
  timeout: 5000,
  params: paramArray
});

} // end of the function Button25_onClick

